package com.niuniu.order_consumer.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author Meng
 * 2022/12/15
 */
@Mapper
public interface RoomMapper {
    Integer getARoom(@Param("buildingId") Integer buildingId,@Param("gender") Integer gender,@Param("classId") Integer classId,@Param("cnt") Integer cnt);
    void reduceAvailableBed(@Param("roomId") Integer roomId,@Param("cnt") Integer cnt);
}
